/**
 * @param  {String} 包含短横线字符串
 * @return {String} 驼峰命名字符串
*/
function getCamelCase(str) {
  let reg = /-(\w)/g;
  return str.replace(reg, (_, match) => match.toUpperCase())
}

// 测试
let str = 'hello-world'
console.log(getCamelCase(str))
